package com.fy.market.persistent.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;
import java.util.Date;

/**
 * 规则模型表
 * @author fwq
 * @date 2025-09-03
 * @desc 规则模型表
 * @TableName: rule_model
 * @Package: com.fy.market.persistent.po
 */
@Data
@TableName("rule_model")
public class RuleModel {
    /**
     * 自增ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 规则模型名称
     */
    @TableField(value = "rule_model")
    private String ruleModel;

    /**
     * 规则模型描述
     */
    @TableField(value = "rule_model_desc")
    private String ruleModelDesc;

    /**
     * 规则类型：1-抽奖前规则、2-抽奖中规则、3-抽奖后规则
     */
    @TableField(value = "rule_model_type")
    private Integer ruleModelType;

    /**
     * 状态：1-启用、0-禁用
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Timestamp updateTime;
}